what math is required for machine learning